home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / CEGUISDK-0.4.1-VC6-STLport.exe / {app} / Samples / common / include / CEGuiIrrlichtBaseApplication.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-11-24  |  2.3 KB  |  63 lines

  1. /************************************************************************
  2.     filename:   CEGuiIrrlichtBaseApplication.h
  3.     created:    24/9/2004
  4.     author:     Paul D Turner
  5. *************************************************************************/
  6. /*************************************************************************
  7.     Crazy Eddie's GUI System (http://www.cegui.org.uk)
  8.     Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
  9.  
  10.     This library is free software; you can redistribute it and/or
  11.     modify it under the terms of the GNU Lesser General Public
  12.     License as published by the Free Software Foundation; either
  13.     version 2.1 of the License, or (at your option) any later version.
  14.  
  15.     This library is distributed in the hope that it will be useful,
  16.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18.     Lesser General Public License for more details.
  19.  
  20.     You should have received a copy of the GNU Lesser General Public
  21.     License along with this library; if not, write to the Free Software
  22.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  23. *************************************************************************/
  24. #ifndef _CEGuiIrrlichtBaseApplication_h_
  25. #define _CEGuiIrrlichtBaseApplication_h_
  26.  
  27. #if defined(_WIN32)
  28. #  pragma comment(lib, "irrlicht.lib")
  29. #  if defined(_DEBUG)
  30. #      pragma comment(lib, "IrrlichtGUIRenderer_d.lib")
  31. #  else
  32. #      pragma comment(lib, "IrrlichtGUIRenderer.lib")
  33. #  endif
  34. #endif
  35.  
  36. #include "CEGuiBaseApplication.h"
  37. #include "renderers/IrrlichtRenderer/irrlichtrenderer.h"
  38. #include "CEGUI.h"
  39.  
  40. class CEGuiIrrlichtBaseApplication : public CEGuiBaseApplication,  public irr::IEventReceiver
  41. {
  42. public:
  43.     CEGuiIrrlichtBaseApplication();
  44.     ~CEGuiIrrlichtBaseApplication();
  45.  
  46.     // implementation of base class abstract methods.
  47.     bool    execute(CEGuiSample* sampleApp);
  48.     void    cleanup();
  49.  
  50.     // irrlicht event listener
  51.     bool OnEvent(irr::SEvent event);
  52.  
  53. protected:
  54.     irr::IrrlichtDevice*       d_device;
  55.     irr::video::IVideoDriver*  d_driver;
  56.     irr::scene::ISceneManager* d_smgr;
  57.     irr::u32                   d_lastTime;
  58.     CEGUI::IrrlichtRenderer*   d_renderer;
  59. };
  60.  
  61.  
  62. #endif  // end of guard _CEGuiIrrlichtBaseApplication_h_
  63.